package cn.edu.sgu.www.mhxysy.service.change.impl;

import cn.edu.sgu.www.mhxysy.entity.change.ChangeSorcery;
import cn.edu.sgu.www.mhxysy.mapper.change.ChangeSorceryMapper;
import cn.edu.sgu.www.mhxysy.service.change.ChangeSorceryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChangeSorceryServiceImpl implements ChangeSorceryService {

    private final ChangeSorceryMapper changeSorceryMapper;

    public ChangeSorceryServiceImpl(ChangeSorceryMapper changeSorceryMapper) {
        this.changeSorceryMapper = changeSorceryMapper;
    }

    @Override
    public List<ChangeSorcery> selectAll() {
        return changeSorceryMapper.selectList(null);
    }

    @Override
    public ChangeSorcery selectById(Integer id) {
        return changeSorceryMapper.selectById(id);
    }

}